//
//  WUPageHeightCollectionViewCell.m
//  Home
//
//  Created by 吴军虎吴军虎 on 16/5/6.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "WUPageHeightCell.h"

@interface WUPageHeightCell()

@property (nonatomic,retain)UILabel *nameL;
@property (nonatomic,retain)UILabel *nameTL;
@property (nonatomic,retain)UILabel *textL;
@property (nonatomic,retain)UILabel *text2;
@property (nonatomic,retain)UILabel *text3;
@property (nonatomic,retain)UILabel *text4;
@property (nonatomic,retain)UILabel *text5;

@end

@implementation WUPageHeightCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView{
    
    self.contentView.backgroundColor = LV;
    _nameL = [UILabel new];
    _nameL.text = @"我的亮点";
    _nameL.textColor = GH;
    _nameL.font = [UIFont fontWithName:TFont size:TEXTCONTENTFONT * AUTO_WIDTH];
    [self.contentView addSubview:_nameL];
    [_nameL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(5 * AUTO_HEIGHT);
        make.height.mas_equalTo(70/2 * AUTO_HEIGHT);
        make.left.mas_equalTo(15 * AUTO_WIDTH);
        
    }];
    
    UIImageView *image = [UIImageView new];
    [self.contentView addSubview:image];
    image.image = [UIImage imageNamed:@"qi"];
    // image.backgroundColor = [UIColor redColor];
    [image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameL).offset(4 *AUTO_HEIGHT);
        make.right.mas_equalTo(self).offset(- 15 * AUTO_WIDTH);
        make.size.mas_equalTo(CGSizeMake(25 * AUTO_WIDTH, 25* AUTO_HEIGHT));
        
    }];
    
    
    
    
    UIImageView *li = [UIImageView new];
    [self.contentView addSubview:li];
    [li mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameL.mas_bottom).offset(0/2 * AUTO_HEIGHT);
        make.left.mas_equalTo(1 * AUTO_WIDTH);
        make.height.mas_equalTo(1.5 * AUTO_HEIGHT);
        make.right.mas_equalTo(-1 * AUTO_WIDTH);
        
    }];
    li.image = [UIImage imageNamed:@"虚线"];
    
    
    
    
    _nameTL = [UILabel new];
    [self.contentView addSubview:_nameTL];
//    _nameTL.text = @"牛逼哄哄";
    _nameTL.textColor = ZI;
    _nameTL.font = [UIFont fontWithName:TFont size:TEXTCONTENTFONT * AUTO_WIDTH];
    
    [_nameTL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameL.mas_bottom).offset(10 * AUTO_HEIGHT);
        make.height.mas_equalTo(1 * AUTO_HEIGHT);
        // make.left.mas_equalTo(line.mas_right).offset(10 * AUTO_WIDTH);
        make.left.mas_equalTo(_nameL);
        
    }];
    
    
    _textL = [UILabel new];
    _textL.backgroundColor = GH;
    _textL.layer.masksToBounds = YES;
    _textL.text = @"别具一格";
    _textL.font =  [UIFont fontWithName:TFont size:TEXTALITTLEFONT * AUTO_WIDTH];
    _textL.textAlignment = NSTextAlignmentCenter;
    _textL.layer.cornerRadius = 4 * AUTO_HEIGHT;
    _textL.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_textL];
    [_textL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameTL.mas_bottom).offset(10 * AUTO_HEIGHT);
        make.left.mas_equalTo(_nameL);
        make.height.mas_equalTo(20 * AUTO_HEIGHT);
        make.width.mas_equalTo(70 * AUTO_WIDTH);
    }];
    
    _text2 = [UILabel new];
    _text2.backgroundColor = GH;
    _text2.layer.masksToBounds = YES;
    _text2.text = @"匠心独具";
    _text2.font =  [UIFont fontWithName:TFont size:TEXTALITTLEFONT * AUTO_WIDTH];
    _text2.textAlignment = NSTextAlignmentCenter;
    _text2.layer.cornerRadius = 4 * AUTO_HEIGHT;
    _text2.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_text2];
    [_text2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameTL.mas_bottom).offset(10 * AUTO_HEIGHT);
        make.left.mas_equalTo(_textL.mas_right).offset(4 *AUTO_WIDTH);
        make.height.mas_equalTo(20 * AUTO_HEIGHT);
        make.width.mas_equalTo(70 * AUTO_WIDTH);
    }];

    
    _text3 = [UILabel new];
    _text3.backgroundColor = GH;
    _text3.layer.masksToBounds = YES;
    _text3.text = @"认真负责";
    _text3.font =  [UIFont fontWithName:TFont size:TEXTALITTLEFONT * AUTO_WIDTH];
    _text3.textAlignment = NSTextAlignmentCenter;
    _text3.layer.cornerRadius = 4 * AUTO_HEIGHT;
    _text3.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_text3];
    [_text3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameTL.mas_bottom).offset(10 * AUTO_HEIGHT);
        make.left.mas_equalTo(_text2.mas_right).offset(4 *AUTO_WIDTH);
        make.height.mas_equalTo(20 * AUTO_HEIGHT);
        make.width.mas_equalTo(70 * AUTO_WIDTH);
    }];
    
    
    _text4 = [UILabel new];
    _text4.backgroundColor = GH;
    _text4.layer.masksToBounds = YES;
    _text4.text = @"诙谐幽默";
    _text4.font =  [UIFont fontWithName:TFont size:TEXTALITTLEFONT * AUTO_WIDTH];
    _text4.textAlignment = NSTextAlignmentCenter;
    _text4.layer.cornerRadius = 4 * AUTO_HEIGHT;
    _text4.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_text4];
    [_text4 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_nameTL.mas_bottom).offset(10 * AUTO_HEIGHT);
        make.left.mas_equalTo(_text3.mas_right).offset(4 *AUTO_WIDTH);
        make.height.mas_equalTo(20 * AUTO_HEIGHT);
        make.width.mas_equalTo(70 * AUTO_WIDTH);
    }];
    
    
    _text5 = [UILabel new];
    _text5.backgroundColor = GH;
    _text5.layer.masksToBounds = YES;
    _text5.text = @"经验十足";
    _text5.font =  [UIFont fontWithName:TFont size:TEXTALITTLEFONT * AUTO_WIDTH];
    _text5.textAlignment = NSTextAlignmentCenter;
    _text5.layer.cornerRadius = 4 * AUTO_HEIGHT;
    _text5.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_text5];
    [_text5 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_textL.mas_bottom).offset(5 * AUTO_HEIGHT);
        make.left.mas_equalTo(_nameL);
        make.height.mas_equalTo(20 * AUTO_HEIGHT);
        make.width.mas_equalTo(70 * AUTO_WIDTH);
    }];


}
-(void)settingRegisnModel:(ResignModel *)moedl{}


@end
